package com.example.xd.dialtest.buildtest;

import android.util.Log;

/**
 * @auther XuDan on 2020/1/16.
 */
public class HPComputer {
    private CPU mCPU;
    private MainBord mMainBord;
    private Rom mRom;

    public HPComputer() {
    }

    public HPComputer(CPU CPU, MainBord mainBord, Rom rom) {
        mCPU = CPU;
        mMainBord = mainBord;
        mRom = rom;
    }

    public CPU getCPU() {
        return mCPU;
    }

    public void setCPU(CPU CPU) {
        mCPU = CPU;
    }

    public MainBord getMainBord() {
        return mMainBord;
    }

    public void setMainBord(MainBord mainBord) {
        mMainBord = mainBord;
    }

    public Rom getRom() {
        return mRom;
    }

    public void setRom(Rom rom) {
        mRom = rom;
    }

    public void show() {
        System.out.println("xd---" + "我是惠普:" + mCPU.getCpu() + "--" + mMainBord.getMainBord() + "--" + mRom.getRom());
    }
}
